/*
 * Copyright (c) $today.year-Now http://www.zxpnet.com All rights reserved.
 */

package com.zxp.springboot.controller;

import org.springframework.web.bind.annotation.*;

/**
 * 见WebMvcAutoConfiguration类源码： 会实例化一个HiddenHttpMethodFilter
 * @desc:
 * @author: shollin
 * @date: 2021/6/20/020 6:32
 */
@RestController
public class IndexController {

    @GetMapping("/user")
    public String get() {

        return "GetMapping...";
    }

    @PostMapping("/user")
    public String post() {

        return "PostMapping...";
    }
    @PutMapping("/user")
    public String put() {

        return "PutMapping...";
    }

    @DeleteMapping("/user")
    public String del() {

        return "DeleteMapping...";
    }
}
